<div id="sidebar">
<h2 class="sn">日志分类</h2>
<ul>
<?php foreach($this->s_c as $val){ ?>
<li><a href="<?php echo $this->baseUrl(); ?>/index/double/id/<?php echo $this->escape($val['id']) ?>"><?php echo $this->escape($val['classname']) ?></a></li>
<?php } ?>
</ul>

<h2>热门日志</h2>
<ul>
<?php foreach($this->s_h as $val){ ?>
<li><a href="<?php echo $this->baseUrl(); ?>/index/single/id/<?php echo $this->escape($val['id']) ?>" title="<?php echo date('Y-m-d H:i:s',$val['posttime']); ?>"><?php echo $this->escape($val['title']) ?></a></li>
<?php } ?>
</ul>

<h2>点击排行</h2>
<ul>
<?php foreach($this->s_hit as $val){ ?>
<li><a href="<?php echo $this->baseUrl(); ?>/index/single/id/<?php echo $this->escape($val['id']) ?>" title="<?php echo date('Y-m-d H:i:s',$val['posttime']); ?>"><?php echo $this->escape($val['title']) ?></a></li>
<?php } ?>
</ul>

<h2>最新日志</h2>
<ul>
<?php foreach($this->s_b as $val){ ?>
<li><a href="<?php echo $this->baseUrl(); ?>/index/single/id/<?php echo $this->escape($val['id']) ?>" title="<?php echo date('Y-m-d H:i:s',$val['posttime']); ?>"><?php echo $this->escape($val['title']) ?></a></li>
<?php } ?>
</ul>

<h2>最新评论</h2>
<ul>
<?php foreach($this->s_comm as $val){ ?>
<li><a href="<?php echo $this->baseUrl(); ?>/index/single/id/<?php echo $this->escape($val['blogid'])?> " title="<?php echo date('Y-m-d H:i:s',$val['posttime']); ?>"><?php echo mb_substr($val['content'],0,12,'utf-8'); ?></a></li>
<?php } ?>
</ul>

<h2>友情连接</h2>
<ul>
<?php foreach($this->s_l as $val){ ?>
<li><a href="<?php echo $this->escape($val['url']) ?>" target="_blank"><?php echo $this->escape($val['name']) ?></a></li>
<?php } ?>
</ul>
</div>
